package com.lx.mybatis.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author lx
 * @since 2024-10-27
 */
@Getter
@Setter
@TableName("goods")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    @TableField("name")
    private String name;

    @TableField("type")
    private String type;

    /**
     * 数量
     */
    @TableField("nums")
    private Integer nums;

    /**
     * 售价
     */
    @TableField("price")
    private Double price;

    /**
     * 逻辑删除: 0 未删除, 1 已删除
     */
    @TableField("state")
    private Byte state;
}
